﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WeatherData
{
    public class RawTextMetarParser : IMetarParser
    {
        private Metar currentReport;
        public Metar RawData
        {
            get { return this.currentReport; }
        }
        public string Parse(Metar report)
        {
            this.currentReport = report;
            if (this.currentReport.Results > 0)
                return this.currentReport.RawData;
            else
                return String.Format("No information for {0}", report.StationId);
        }
    }
}
